{wc:templates "index","header"}
<link rel="stylesheet" type="text/css" href="{G_TEMPLATES_STYLE}/css/GoodsList.css"/>
<link rel="stylesheet" type="text/css" href="{G_TEMPLATES_STYLE}/css/header.css"/>

<div class="g-purchase">
  <div class="purchase-banner"></div>
  <div class="purchase-con clrfix">
    <div class="g-purchase-box clrfix">
      <!--限购商品中奖名单-->
      <div id="divLotteryList" class="m-roll" style="">
        <p>
          <em>揭晓公告：</em></p>
        <div class="congratulate" id="myscroll">
          <ul id="ulLotteryList" class="gray6" style="margin-top: 0px;">
          {wc:loop $user_list $list}
            <li>
              <span>恭喜</span>
              <span class="user-name">
                <a href="?/uname/100000{wc:$list['uid']}" target="_blank" style="color: #ff4a4e;" title="{wc:$list['username']}">{wc:$list['username']}</a></span>
              <span>参与
                <b>4</b>人次获得</span>
              <span class="comm-name">
                <a href="?/goods/{wc:$list['shopid']}" target="_blank" title="{wc:$list['shopname']}">{wc:$list['shopname']}</a></span>
            </li>
            {wc:loop:end}
          </ul>
        </div>
        <i>
          <a href="?/goods_lottery" target="_blank">更多&gt;&gt;</a></i>
      </div>
      <!--加载-->
      <div id="divLoading" class="g-loading" style="display: none;">
        <b>
        </b>
      </div>
      <!--限购商品数据-->
      <div id="ulLimitGoodsList" class="m-purchase-list clrfix" style="">
		{wc:if $shoplist!=null}		
		{wc:loop $shoplist $shop}
        <div class="productsCon" goodsid="24395" codeid="12490320" limitbuy="5">
          <div class="proList">
            <ul>
              <li class="list-pic">
                <a href="{WEB_PATH}/go/index/item/{wc:$shop['id']}" target="_blank" title="{wc:$shop['title']}">
                  <img name="goodsImg" src="{G_UPLOAD_PATH}/{wc:$shop['thumb']}"></a>
              </li>
	 
			  
              <li class="list-name">
                <a href="{WEB_PATH}/go/index/item/{wc:$shop['id']}" target="_blank" title="{wc:$shop['title']}">{wc:$shop['title']}</a></li>
              <li class="list-value gray6">价值：{wc:$shop['money']}
                <span>
                  <i></i>限购
                  <b>{wc:$shop['limit_buy']}</b>人次</span>
              </li>
              <li class="g-progress">
                <dl class="m-progress">
                  <dt>
                    <b style="width:{wc:fun:width($shop['canyurenshu'],$shop['zongrenshu'],213)}px;"></b>
                  </dt>
                  <dd>
                    <span class="orange fl">
                      <em>{wc:$shop['canyurenshu']}</em>已参与</span>
                    <span class="fl gray6">
                      <em>{wc:$shop['zongrenshu']}</em>总需人次</span>
                    <span class="blue fr">
                      <em>{wc:$shop['zongrenshu']-$shop['canyurenshu']}</em>剩余</span></dd>
                </dl>
              </li>
              <li name="buyBox" class="list-btn" limitbuy="5">
                <a href="{WEB_PATH}/go/index/item/{wc:$shop['id']}" title="立即{wc:fun:_cfg('web_name_two')}" class="u-imm" id="btnYgOneBuy0">立即{wc:fun:_cfg('web_name_two')}</a>
                <a href="{WEB_PATH}/go/index/item/{wc:$shop['id']}" class="u-carts" title="加入购物车"></a>
              </li>
            </ul>
          </div>
        </div>
		{wc:loop:end}
	{wc:else}
	<div class="NoConMsg"><span>未找到有关“<em class="orange">{wc:$search}</em>”的商品</span></div>
	{wc:if:end}
      </div>
    </div>
  </div>
</div>

{wc:templates "index","footer"}
<script type="text/javascript">
function $(element){
 if(arguments.length>1){
  for(var i=0,length=arguments.length,elements=[];i<length;i++){
   elements.push($(arguments[i]));
  }
  return elements;
 }
 if(typeof element=="string"){
  return document.getElementById(element);
 }else{
  return element;
 }
}
var Class={
 create:function(){
  return function(){
   this.initialize.apply(this,arguments);
  }
 }
}
Function.prototype.bind=function(object){
 var method=this;
 return function(){
  method.apply(object,arguments);
 }
}
var Scroll=Class.create();
Scroll.prototype={
 initialize:function(element,height){
  this.element=$(element);
  this.element.innerHTML+=this.element.innerHTML;
  this.height=height;
  this.maxHeight=this.element.scrollHeight/3;
  this.counter=0;
  this.scroll();
  this.timer="";
  this.element.onmouseover=this.stop.bind(this);
  this.element.onmouseout=function(){this.timer=setTimeout(this.scroll.bind(this),1000);}.bind(this);
 },
 scroll:function(){
  if(this.element.scrollTop<this.maxHeight){
   this.element.scrollTop++;
   this.counter++;
  }else{
   this.element.scrollTop=0;
   this.counter=0;
  }
  if(this.counter<this.height){
   this.timer=setTimeout(this.scroll.bind(this),20);
  }else{
   this.counter=0;
   this.timer=setTimeout(this.scroll.bind(this),3000);
  }
 },
 stop:function(){
  clearTimeout(this.timer);
 }
}
var myscroll=new Scroll("myscroll",18);
var maxw=document.getElementById('head_nav');
maxw.style.width="100%";
</script>
 <script type="text/javascript" src="{G_GLOBAL_STYLE}/global/js/jquery-1.8.3.min.js"></script> 